package com.new_wear.project.system.log.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.new_wear.project.system.log.mapper.CstUserIntegralLogMapper;
import com.new_wear.project.system.log.domain.CstUserIntegralLog;
import com.new_wear.project.system.log.service.ICstUserIntegralLogService;
import com.new_wear.common.utils.text.Convert;

/**
 * 用户 - 等级积分日志Service业务层处理
 * 
 * @author new_wear
 * @date 2019-12-31
 */
@Service
public class CstUserIntegralLogServiceImpl implements ICstUserIntegralLogService 
{
    @Autowired
    private CstUserIntegralLogMapper cstUserIntegralLogMapper;

    /**
     * 查询用户 - 等级积分日志
     * 
     * @param id 用户 - 等级积分日志ID
     * @return 用户 - 等级积分日志
     */
    @Override
    public CstUserIntegralLog selectCstUserIntegralLogById(Long id)
    {
        return cstUserIntegralLogMapper.selectCstUserIntegralLogById(id);
    }

    /**
     * 查询用户 - 等级积分日志列表
     * 
     * @param cstUserIntegralLog 用户 - 等级积分日志
     * @return 用户 - 等级积分日志
     */
    @Override
    public List<CstUserIntegralLog> selectCstUserIntegralLogList(CstUserIntegralLog cstUserIntegralLog)
    {
        return cstUserIntegralLogMapper.selectCstUserIntegralLogList(cstUserIntegralLog);
    }

    /**
     * 新增用户 - 等级积分日志
     * 
     * @param cstUserIntegralLog 用户 - 等级积分日志
     * @return 结果
     */
    @Override
    public int insertCstUserIntegralLog(CstUserIntegralLog cstUserIntegralLog)
    {
        return cstUserIntegralLogMapper.insertCstUserIntegralLog(cstUserIntegralLog);
    }

    /**
     * 修改用户 - 等级积分日志
     * 
     * @param cstUserIntegralLog 用户 - 等级积分日志
     * @return 结果
     */
    @Override
    public int updateCstUserIntegralLog(CstUserIntegralLog cstUserIntegralLog)
    {
        return cstUserIntegralLogMapper.updateCstUserIntegralLog(cstUserIntegralLog);
    }

    /**
     * 删除用户 - 等级积分日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCstUserIntegralLogByIds(String ids)
    {
        return cstUserIntegralLogMapper.deleteCstUserIntegralLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除用户 - 等级积分日志信息
     * 
     * @param id 用户 - 等级积分日志ID
     * @return 结果
     */
    @Override
    public int deleteCstUserIntegralLogById(Long id)
    {
        return cstUserIntegralLogMapper.deleteCstUserIntegralLogById(id);
    }
}
